﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for YKIENKHController
/// </summary>
public class YKIENKHController
{
	public YKIENKHController()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    YKienKHDAL DAL = new YKienKHDAL();
    public int fnC_InsertYKienKhachHang(YKienKhachHangEntity YKien)
    {
        return DAL.fnG_InsertYKienKH(YKien);
    }
    public DataTable fnC_GetDataAllYKien()
    {
        return DAL.fnG_GetDataAllYkien();
    }
    public YKienKhachHangEntity GetYKien(string idyk)
    {
        return DAL.GetYKien(idyk);
    }

    public void AddNew(YKienKhachHangEntity ykien)
    {
        DAL.AddNew(ykien);
    }
    public void Delete(string ykid)
    {
        DAL.Delete(ykid);
    }
}